package com.ulook.lookplanet.data.source;

import com.ulook.lookplanet.common.AppServer;
import com.ulook.lookplanet.ui.home.VUserInfo;
import com.ulook.lookplanet.util.net.AsynRequestUtil;
import com.ulook.lookplanet.util.net.RequestParams;
import com.ulook.lookplanet.util.net.ResponseCallback;

/**
 * 描述：
 *
 * @author L1998
 * @data 2021/3/26
 */
public class HomeDataSource {

    /**
     * 初始化页面展示的信息
     *
     * @param userId
     */
    public void initUserInfo(int userId, ResponseCallback callback) {
        RequestParams params = new RequestParams();
        params.put("id", userId);
        AsynRequestUtil.post(AppServer.ROOT_PATH + "/home/getUserInfo", params, VUserInfo.class, callback);
    }

}
